-- GENERATED SPELL FOR [Zanzil Witch Doctor] --


function spell0_1490(pUnit, Event) --@Curse of Weakness,n/a--
pUnit:FullCastSpellOnTarget(7646,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1490', 567, 1)
end

function spell1_1490(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1490', 3000, 1)
end

function Sorts_1490(pUnit, Event)
local choix_sorts_1490 = math.random(0, 1)
if choix_sorts_1490 == 0 then
pUnit:RegisterEvent('spell0_1490', 1, 1)
end
if choix_sorts_1490 == 1 then
pUnit:RegisterEvent('spell1_1490', 1, 1)
end
end

function mob1490_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1490', math.random(1500, 3000), 1)
end

function mob1490_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1490_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1490_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1490, 1, 'mob1490_Action')
RegisterUnitEvent(1490, 2, 'mob1490_Leave')
RegisterUnitEvent(1490, 3, 'mob1490_Kill')
RegisterUnitEvent(1490, 4, 'mob1490_Die')
